package com.aidex.biz.service;

import com.aidex.biz.domain.JinjianInfo;
import com.aidex.common.core.service.BaseService;
import com.aidex.biz.domain.LoanBillDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 还款信息明细Service接口
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2025-07-03
 */
public interface LoanBillDetailService extends BaseService<LoanBillDetail> {

    /**
     * 批量删除还款信息明细
     *
     * @param ids 需要删除的还款信息明细ID集合
     * @return 结果
     */
    public int deleteLoanBillDetailByIds(String[] ids);

    /**
     * 获取最大编号
     *
     * @param loanBillDetail 还款信息明细
     * @return 结果
     */
    public int findMaxSort(LoanBillDetail loanBillDetail);

    @Transactional(readOnly = false)
    public Integer insertBatch(List<LoanBillDetail> list);

    /**
     * 修改逾期状态
     *
     * @param loanBillDetail
     * @return
     */
    @Transactional(readOnly = false)
    public boolean updateLoanBillDetailOverDue(LoanBillDetail loanBillDetail);

    public List<LoanBillDetail> findListByLoanId(String loanId);
}
